-- GENERATED SPELL FOR [Captured Mercenary Captain] --


function spell0_32908(pUnit, Event) --@Devastate,n/a--
pUnit:FullCastSpellOnTarget(62317,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32908', 551, 1)
end

function spell1_32908(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(62444,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32908', 547, 1)
end

function Sorts_32908(pUnit, Event)
local choix_sorts_32908 = math.random(0, 1)
if choix_sorts_32908 == 0 then
pUnit:RegisterEvent('spell0_32908', 1, 1)
end
if choix_sorts_32908 == 1 then
pUnit:RegisterEvent('spell1_32908', 1, 1)
end
end

function mob32908_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32908', math.random(1500, 3000), 1)
end

function mob32908_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32908_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32908_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32908, 1, 'mob32908_Action')
RegisterUnitEvent(32908, 2, 'mob32908_Leave')
RegisterUnitEvent(32908, 3, 'mob32908_Kill')
RegisterUnitEvent(32908, 4, 'mob32908_Die')
